package com.tongcao.cn;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.ImportResource;

@SpringBootApplication
@ComponentScan("com.tongcao.cn")
@MapperScan("com.tongcao.cn.mapper")
@ImportResource({"classpath:config/*.xml"})
@ServletComponentScan
public class BookerApplication {


    public static void main(String[] args) {
        SpringApplication.run(BookerApplication.class, args);
    }
}
